Test a Read Function and Simple Update
This page last changed on Nov 29, 2008.
Oracle Data Service Integrator Documentation > Data Services Developer's Guide How To Test a Read Function and Simple UpdateThis topic describes how to test any Read function in an entity data service (either logical or physical) in Test view. Adjust SettingsA read function fetches data. A physical or logical data service usually has at least one read function. You can test a read function with either sample data or real-time data, from the Test tab in Workshop for WebLogic. Testing a read function ensures that:
The returned data is displayed in the Test tab. Checking the Data Returned by a Read FunctionWhen you test a read function, Workshop for WebLogic deploys the service to the server if it is not yet deployed, or if it has changed since it was last deployed. A read function allows you to specify various settings. Settings You Can Change for the Read FunctionYou might want to test with a smaller result set. Select Limit Elements in Array Results To to limit the result to a specific number of elements of the return type, to specific child elements in the return type, or both.
Use Start Client Transaction to query multiple relational sources using XA transaction drivers (if selected, Oracle Data Service Integrator uses the Required transaction mode to query data sources; if not, Oracle Data Service Integrator uses the NonSupported EJB transaction method).
Run the Read FunctionA read function optionally can have parameters. It is quite common for a read function to have no parameters, with a name something like read() or ADDRESS(). If you are working with a logical service, the update map must be completely enabled before you can run a read function in Test view. If the update map has yellow update blocks or disabled procedures , you must resolve them before you can test a Read function. To test a Read function:
Perform a Simple UpdateThe easiest way to test that you can update a data source is to use the Edit and Submit buttons in Test view.
Before you test an update, be sure that:
To update data after running a Read function:
See AlsoConceptsHow Tos
|
Document generated by Confluence on Jan 13, 2009 15:57 |